package com.yanqu.road.entity.log;


import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_washe_season_reward", autoSave = true)
public class LogWasheSeasonReward {

    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "奖励类型", isIndex = true)
    private int type;
    @FieldTypeAnnotation(desc = "赛季")
    private int seasonId;
    @FieldTypeAnnotation(desc = "奖励ID")
    private int rewardId;
    @FieldTypeAnnotation(desc = "赛季累计场次")
    private long seasonPlayTimes;
    @FieldTypeAnnotation(desc = "赛季累计游戏时间")
    private long seasonPlayTime;
    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogWasheSeasonReward(long userId, int type, int seasonId, int rewardId, long seasonPlayTimes, long seasonPlayTime) {
        this.time = new Date();
        this.userId = userId;
        this.type = type;
        this.seasonId = seasonId;
        this.rewardId = rewardId;
        this.seasonPlayTimes = seasonPlayTimes;
        this.seasonPlayTime = seasonPlayTime;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getSeasonId() {
        return seasonId;
    }

    public void setSeasonId(int seasonId) {
        this.seasonId = seasonId;
    }

    public int getRewardId() {
        return rewardId;
    }

    public void setRewardId(int rewardId) {
        this.rewardId = rewardId;
    }

    public long getSeasonPlayTimes() {
        return seasonPlayTimes;
    }

    public void setSeasonPlayTimes(long seasonPlayTimes) {
        this.seasonPlayTimes = seasonPlayTimes;
    }

    public long getSeasonPlayTime() {
        return seasonPlayTime;
    }

    public void setSeasonPlayTime(long seasonPlayTime) {
        this.seasonPlayTime = seasonPlayTime;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
